import { Widget } from "./widget";


export class Button extends Widget {

    static {
        globalThis.__Button__ = new Button();
    }

    static create(): Button {
        return Deno.core.ops.opCreateButton();
    }
    
    get text() {
        return Deno.core.ops.opGetButtonText(this);
    }

    set text(str: string) {
        Deno.core.ops.opSetButtonText(this, str);
    }



}